<?php
/**
 * SocialEnginePro
 *
 * @category   Application_Extensions
 * @package    tv
 * @author     Azim
 */

/**
 * @category   Application_Extensions
 * @package    tv
 */
class Tv_Widget_CategoriesListController extends Engine_Content_Widget_Abstract
{
  
  public function indexAction()
  {
        // Populate options
        $categories = Engine_Api::_()->getDbtable('categories', 'tv')->getCategories();
       
        $p = Zend_Controller_Front::getInstance()->getRequest()->getParams();

        $selectedCategory = @$p['category_id'];
        
      
        $this->view->categories = $categories;
        $this->view->selectedCategory = $selectedCategory;
  }
}